package com.kuaidi100.sdk.response;

import com.fasterxml.jackson.databind.ObjectMapper;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.List;

/**
 * @Author: api.kuaidi100.com
 * @Date: 2020-09-17 14:17
 */
public class BOrderQueryData {

    private String province;

    private String city;

    private String district;

    private String addr;

    private String latitude;

    private String longitude;

    private List<BOrderQueryDataInfo> mktInfo;

    @Override
    public String toString() {
        try {
            ObjectMapper objectMapper = new ObjectMapper();
            return objectMapper.writeValueAsString(this);
        } catch (Exception e) {
            return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                    .append("province", province)
                    .append("city", city)
                    .append("district", district)
                    .append("addr", addr)
                    .append("latitude", latitude)
                    .append("longitude", longitude)
                    .append("mktInfo", mktInfo)
                    .toString();
        }
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getDistrict() {
        return district;
    }

    public void setDistrict(String district) {
        this.district = district;
    }

    public String getAddr() {
        return addr;
    }

    public void setAddr(String addr) {
        this.addr = addr;
    }

    public String getLatitude() {
        return latitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }

    public String getLongitude() {
        return longitude;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }

    public List<BOrderQueryDataInfo> getMktInfo() {
        return mktInfo;
    }

    public void setMktInfo(List<BOrderQueryDataInfo> mktInfo) {
        this.mktInfo = mktInfo;
    }
}
